package com.yantong.pojo;

import java.util.List;

public class WxCardGroupon {
    public String background_pic_url;
    public WxCardBaseInfo base_info;
    public AdvancedInfo advanced_info;
    public boolean supply_bonus = true;
    public boolean supply_balance;
    public String prerogative;
    public boolean auto_activate = true;
    public CustomField custom_field1;
    public BonusRule bonus_rule;
    public int discount;
    public String activate_url;
    public CustomCell custom_cell1;



    public static class AdvancedInfo {
        public UseCondition use_condition;
//        public AbstractInfo abstractInfo;
        public List<ImageValue> text_image_list;
        public List<TimeLimit> time_limit;
        public List<String> business_service;
    }

    public static class UseCondition {
        public String accept_category;
        public String reject_category;
        public boolean can_use_with_other_discount = true;
    }

    public static class AbstractInfo {
        public String abstractInfo;
        public List<String> icon_url_list;
    }

    public static class ImageValue {
        public String image_url;
        public String text;
    }

    public static class TimeLimit {
        public String type;
        public int begin_hour;
        public int end_hour;
        public int begin_minute;
        public int end_minute;
    }

    public static class CustomField {
        public String name_type;
        public String name;
        public String tips;
        public String url;
    }

    public static class BonusRule {
        public int cost_money_unit;
        public int increase_bonus;
        public int max_increase_bonus;
        public int init_increase_bonus;
        public int cost_bonus_unit;
        public int reduce_money;
        public int least_money_to_use_bonus;
        public int max_reduce_bonus;
    }

    public static class CustomCell {
        public String name;
        public String tips;
        public String url;
    }
}
